package com.coderman.model;

import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.CopyOnWriteArrayList;

/**
 * description: AreaConfig <br>
 * date: 2020/9/12 15:45 <br>
 * author: coderman <br>
 * version: 1.0 <br>
 */
public class AreaConfig {
    /**
     * 城市名称
     */
    private String cityName;
    /**
     * 爬取的city url
     */
    private String cityUrl;
    /**
     * 爬取的行政区-Url
     *
     * key:行政区名称
     * value:行政区url
     */
    private ConcurrentHashMap<String,String> urlMap;

    /**
     * 行政区对应的小区列表
     * key:行政区名称
     * value:行政区下的小区列表
     */
    private ConcurrentHashMap<String, CopyOnWriteArrayList<AreaConfigModel>> areaListMap;



    /**
     * 页数
     */
    private Integer page;


    public void setUrlMap(ConcurrentHashMap<String, String> urlMap) {
        this.urlMap = urlMap;
    }

    public ConcurrentHashMap<String, CopyOnWriteArrayList<AreaConfigModel>> getAreaListMap() {
        return areaListMap;
    }

    public void setAreaListMap(ConcurrentHashMap<String, CopyOnWriteArrayList<AreaConfigModel>> areaListMap) {
        this.areaListMap = areaListMap;
    }

    public String getCityUrl() {
        return cityUrl;
    }

    public void setCityUrl(String cityUrl) {
        this.cityUrl = cityUrl;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public ConcurrentHashMap<String, String> getUrlMap() {
        return urlMap;
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }
}
